<?php

// This file is part of the Carrington Text Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
// **********************************************************************

if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
if (CFCT_DEBUG) { cfct_banner(__FILE__); }

get_header();
get_sidebar();

?>

<div id="main" role="main">

	<div id='editorial-container'>
	
	<h1 class='editorial-title'>
		<?php
			the_title(); 
		?>
	</h1>
	
	<div class='editorial-images'>
		<?php
		$photos = aldenta_get_images('full');
		
		if ($photos) 
		{
			foreach ($photos as $photo) 
			{
				echo "$photo";
			}
		}else{
			?>
			<img src="<?php bloginfo('template_url') ?>/img/placeholder.jpg">
			<?php
		}
		?>
		<img class='light' src="<? bloginfo('template_url');?>/img/light.png">
	</div>
	
	<div class="page-content">
	<?php
		the_content(); 
	?>
		</div><!--/editorial container-->
	</div><!--/entry-content-->
	<div class="clear"></div>
	<div class="by-line">
		<?php edit_post_link(__('Edit', 'carrington-text'), '<div class="entry-editlink">', '</div>'); ?>
		
	</div><!--/by-line-->
</div><!-- .post -->

<?php
get_footer();

?>